package com.xbongbong.pro.customerstatement.pojo.vo;

import com.xbongbong.paas.pojo.KeyValuePojo;
import com.xbongbong.paas.toolbox.helper.PageHelper;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import com.xbongbong.pro.customerstatement.pojo.StatementTableDataExportPojo;
import com.xbongbong.pro.customerstatement.pojo.StatementTableDataPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author zcp
 * @version v1.0
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class StatementCustomerTableVO extends BaseVO {
    private static final long serialVersionUID = -6949949533952543438L;

    /**
     * 标题，格式为[{"key": "checkingDate","value": "对账日期"},{"key": "type","value": "类型"}]
     */
    private List<KeyValuePojo> title;
    /**
     * 数据，内部为对象，封装了一些前端用于穿透的信息
     * [{"checkingDate": {"value": "2020-11-4"}, "type": {"value": "应收款"}, "statementId": {"value": "YS001", "dataId": 1,"throughFlag": 1,"businessType": 701,"saasMark": 1}}]
     */
    private List<StatementTableDataPojo> data;
    /**
     * 与data对应，但主要用于导出、打印（数据已经直接是字符串）
     * 内部直接为显示的字符串，非对象，如
     * [{"checkingDate": "2020-11-4", "type": "应收款", "statementId": "YS001"}]
     */
    private List<StatementTableDataExportPojo> exportData;
    /**
     * 分页对象
     */
    private PageHelper pageHelper;
}
